package TEST;

import java.util.HashMap;

import UTIL.XmlParser;
import UTIL.XmlValidator;

public class TestXML {

	public static void main(String[] args) {
		String xmlPath="database.conf.xml";
		String xsdPath="database.conf.xsd";
		
		
	
		if(XmlValidator.validate(xmlPath, xsdPath)){
			HashMap<String,String> hm=XmlParser.parser(xmlPath);
			System.out.println(hm.get("driver"));
			System.out.println(hm.get("password"));
		}
		
		
//		!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//		xsi:noNamespaceSchemaLocation="database.conf.xsd"
	}

}
